package com.rerun.enums;

/**
 * redis key  后缀枚举
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /11/6 14:02
 */
public enum RedisKeySuffixEnum {
    /**
     * Sms code cache key suffix redis key suffix enum.
     */
    SMS_CODE_CACHE_KEY_SUFFIX("_smsCode", "短信验证码缓存key"),
    APP_MEMBER_CACHE_KEY_SUFFIX("_appMember", "app用户信息缓存key");
    /**
     * 主键
     */
    private final String key;

    /**
     * 描述
     */
    private final String desc;


    RedisKeySuffixEnum(final String key, final String desc) {
        this.key = key;
        this.desc = desc;
    }

    /**
     * Gets key.
     *
     * @return the key
     */
    public String getKey() {
        return this.key;
    }

    /**
     * Gets desc.
     *
     * @return the desc
     */
    public String getDesc() {
        return this.desc;
    }

}
